CSharpTest.Net
Add(KeyValuePair<TKey,TValue>) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > BTreeDictionary<TKey,TValue> Class > Add Method : Add(KeyValuePair<TKey,TValue>) Method

item
The object to add to the ICollection.

Glossary Item Box

Adds an item to the ICollection.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Add( _
   ByVal item As KeyValuePair(Of TKey,TValue) _
) 
C# 
public void Add( 
   KeyValuePair<TKey,TValue> item
)

Parameters

item
The object to add to the ICollection.

Exceptions

ExceptionDescription
System.ArgumentExceptionAn element with the same key already exists in the IDictionary.
System.NotSupportedExceptionThe IDictionary is read-only.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys